Tasks:
Configure routers so that R2 will be the default router for whole network and it will originate default information to whole network but only on speciified interfaces.

In this case we wanna send default network to R1 but not to R3.
!R1 configuration
interface Loopback0
 ip address 10.1.1.1 255.0.0.0
!
interface Serial0/0
 ip address 1.1.1.1 255.0.0.0
no shut
!
router rip
 version 2
 network 1.0.0.0
 network 10.0.0.0


!R2 configuration
interface Serial0/0
 ip address 1.1.1.2 255.0.0.0
 no shut
!
interface Serial0/1
 ip address 2.2.2.1 255.0.0.0
no shut
!
router rip
 version 2
 network 1.0.0.0
 network 2.0.0.0
 default-information originate route-map stop-default



route-map stop-default
 set interface Serial0/1



!R3 configuration
interface Serial0/0
 ip address 2.2.2.2 255.0.0.0
 no shut
!
router rip
 version 2
 network 2.0.0.0
Explanation


























Applying route map to send default information originate. Now default information will only be sent to interface specified in route map

Creating route map

setting interface in the route map
 
Task:
Configure routers so that R2 will only originate default information to R3; if 10.1.1.1 is available
!R1 configuration
interface Loopback0
 ip address 10.1.1.1 255.255.255.255
!
interface Serial0/0
 ip address 1.1.1.1 255.0.0.0
no shut
!
router rip
 version 2
 network 1.0.0.0
 network 10.0.0.0
no auto-summary


!R2 configuration
interface Serial0/0
 ip address 1.1.1.2 255.0.0.0
 no shut
!
interface Serial0/1
 ip address 2.2.2.1 255.0.0.0
no shut
!
router rip
 version 2
 network 1.0.0.0
 network 2.0.0.0
 default-information originate route-map match-10


access-list 10 permit 10.1.1.1

route-map match-10
 match ip address 10
 set interface Serial0/1


!R3 configuration

interface Serial0/0
 ip address 2.2.2.2 255.0.0.0
 no shut
!
router rip
 version 2
 network 2.0.0.0





























This command let us do conditional routing as it matches route map name "match-10".

Created Access List 10

Created Route map 10
if ip address in access list 10 matched then interface will be set.
 
Tasks:
Configure ip addresses as per topology
Configure Rip on all networks

R3 will forward all routes to R5 by adding 10 in metric except network 1.1.1.0
R1 will change metric for 4.4.4.0 to 5 for R4 and 8 for R2
Verify results by:
show ip route
! R1 Configuration
interface Serial0/0
 ip address 1.1.1.1 255.255.255.252
no shut

interface Serial0/1
 ip address 3.3.3.1 255.255.255.252
no shut

interface Serial0/2
 ip address 2.2.2.1 255.255.255.252
no shutdown

router rip
 version 2
 offset-list 1 out 5 Serial0/1



 offset-list 1 out 8 Serial0/2

 network 1.0.0.0
 network 2.0.0.0
 network 3.0.0.0
 no auto-summary

access-list 1 permit 4.4.4.0 0.0.0.255



! R2 Configuration
interface Serial0/0
 ip address 2.2.2.2 255.255.255.252
 no shut

router rip
 version 2
 network 2.0.0.0
 no auto-summary



! R3 Configuration
interface Serial0/0
 ip address 1.1.1.2 255.255.255.252
no shut
!
interface Serial0/1
 ip address 4.4.4.1 255.255.255.252
no shut
!
router rip
 version 2
 offset-list 1 out 10 Serial0/1


 network 1.0.0.0
 network 4.0.0.0
 no auto-summary
!
access-list 1 deny   1.1.1.0 0.0.0.255
access-list 1 permit 0.0.0.0 3.3.3.255


! R4 Configuration
interface Serial0/0
 ip address 3.3.3.2 255.255.255.252
 no shut
!
router rip
 version 2
 network 3.0.0.0
 no auto-summary



! R5 Configuration
interface Serial0/0
 ip address 4.4.4.2 255.255.255.252
 no shut
!
router rip
 version 2
 network 4.0.0.0
 no auto-summary
Explanation
IP addresses configured on interface



IP address configured on interface



IP address configured on interface



Configuring Rip

Manipulating metric by 5 by using access list 1. Offset list is applied when information gets out of an interface


Manipulating metric by 8 by using access list 1. Offset list is applied when information gets out of an interface





Access list 1 created


























Manipulating metric by 10 hops by using access list 1. Offset list is applied when information gets out of an interface





Access list 1 created
 
passive-interface command is used to block RIP broadcasts on an interface connected to a subnet of a RIP-enabled network. In simple words, Passive-interface command is used in all routing protocols to disable sending updates out from a specific interface. A RIP Passive Interface in a nut shell prevents the RIP routing process from sending multicast/broadcast updates out a specified interface. A RIP Passive interface however does not block unicast updates. Keep in mind a Passive Interface DOES NOT block multicast/broadcast updates therefore the router would still process received RIP updates
Tasks:
Configure IP addresses as per diagram
Configure Rip on all networks
Configure R3 Fast Ethernet 0/0 interface to start Rip unicast
Debug by using following commands.
show ip route
show ip route rip
sh ip protocol
debug ip rip events
debug ip rip database

! R1 Configuration

interface Loopback0
ip address 20.1.2.1 255.255.255.255

interface FastEthernet0/0
ip address 1.1.1.10 255.255.255.0
no shut

router rip
version 2
network 1.0.0.0
network 20.0.0.0
no auto-summary


! R2 Configuration

interface Loopback0
ip address 20.1.1.1 255.255.255.255

interface FastEthernet0/0
ip address 1.1.1.20 255.255.255.0
no shut

router rip
version 2
network 1.0.0.0
network 20.0.0.0
no auto-summary


! R3 Configuration

interface Loopback0
ip address 30.1.1.1 255.255.255.255

interface Loopback1
ip address 30.1.2.1 255.255.255.255

interface FastEthernet0/0
ip address 1.1.1.30 255.255.255.0
no shut

router rip
version 2
passive-interface FastEthernet0/0
network 1.0.0.0
network 30.0.0.0
neighbor 1.1.1.20
no auto-summary

Explanation














































Configuring Passive
interface on F0/0 of Router 3
 
Picture
Requirement:
  1. Configure IP addresses as given
  2. Configure discontigeous networks on router 1 and router 3 loopback 0.
  3. Run Rip version 1 on all routers
  4. Check if both Discontigeous networks are reachable from router 6. We will ping both networks and you will see results.

Router 1 configuration

R1(config)#interface Loopback0
R1(config-if)# ip address 200.100.100.1 255.255.255.128

R1(config)#interface FastEthernet0/0
R1(config-if)#ip address 1.1.1.1 255.255.255.252
R1(config-if)# no shutdown

R1(config)#router rip
 R1(config-router)#version 1
 R1(config-router)#network 1.0.0.0
 R1(config-router)#network 200.100.100.0


Router 2 configuration

R2(config)# interface FastEthernet0/0
 R2(config-if)#ip address 1.1.1.2 255.255.255.252
  R2(config-if)# no shutdown

R2(config)# interface FastEthernet0/1
  R2(config-if)#ip address 2.2.2.1 255.255.255.252
  R2(config-if)#no shutdown

R2(config)# interface FastEthernet1/0
  R2(config-if)#ip address 3.3.3.1 255.255.255.252
  R2(config-if)#speed 100
  R2(config-if)#duplex full
R2(config-if)#no shutdown

R2(config)# router rip
  R2(config-router)#version 1
 R2(config-router)#network 1.0.0.0
 R2(config-router)#network 2.0.0.0
 R2(config-router)#network 3.0.0.0


R1# show ip protocols
Router 3 configuration

R3(config)#interface Loopback0
R1(config-if)# ip address 200.100.100.150 255.255.255.128

R3(config)#interface FastEthernet0/0
R3(config-if)# ip address 2.2.2.2 255.255.255.252
R3(config-if)#no shutdown

R3(config)#router rip
 R3(config-router)#version 1
 R3(config-router)#network 2.0.0.0
 R3(config-router)#network 200.100.100.0


Router 6 configuration

R6(config)#interface FastEthernet0/0
 R6(config-if)#ip address 3.3.3.2 255.255.255.252
R6(config-if)# speed 100
R6(config-if)# full-duplex
R6(config-if)#no shutdown

R6(config)# ip route 0.0.0.0 0.0.0.0 3.3.3.1

R2# Show ip route
Here we ping from Router 6 to R1 and R3 loopback interfaces ip addresses ( which are discontigeous). Let see results. From undermentioned ping images, we have found that ping to 200.100.100.150 is successful but ping to 200.100.100.1 is unsuccessful.
Picture
Here we have tried to find reason for different result of ping.

Ahaa !! Reason found.
In both cases, Router 2 is forwarding packets to 2.2.2.2 which is at fastethernet 0/1 by following routing table first entry and hence reach 200.100.100.150 but fail to reach 200.100.100.1.